// 基于template/src/widgets/\{{appEntities}}/\{{ctrls@DASHBOARD}}-dashboard/\{{spinalCase ctrl.codeName}}-dashboard-model.ts.hbs生成
import { IDashboardModel } from "@/core";

function getModel(): IDashboardModel {
    return {
        name: "{{ctrl.name}}",
        caption: "{{ctrl.caption}}",
        codeName: "{{ctrl.codeName}}",
        cssName: "{{#if ctrl.psSysCss}}{{ctrl.psSysCss.cssName}}{{/if}}",
        controlType: "{{ctrl.controlType}}",
        entityCodeName: '{{ctrl.psAppDataEntity.codeName}}',
        isEnableCustomized: {{ctrl.enableCustomized}},
        portletArray:[
        {{#each ctrl.psControls as | portlet |}}
        {{> @macro/widgets/dashboard/portlet-model.hbs item=portlet}}
        {{/each}}
        ],
    }
}
export const model = getModel();
